package containerlogistik.implementation;

import containerlogistik.interfaces.*;

public abstract class AbstractContainer extends AbstractBody implements Container {
        
    StowageLocation loc;
    Stowage<Pallet> palletStowage;
    
    @Override
    public Mass mass() {
        return Values.ZERO_MASS;
    }
    
    @Override
    public Mass emptyMass() {
        return Values.ZERO_MASS;
    }

    @Override
    public Mass maxMass() {
        return Values.ZERO_MASS;
    }
    
    @Override
    public StowageLocation loc() {
        return this.loc;
    }

    @Override
    public void setLocNull() {
        this.loc = Entities.nullLocation();
    }

    @Override
    public void setLoc(Object palletStowage, StowageLocation loc) {        
        this.loc = loc;
        if (palletStowage instanceof Stowage) this.palletStowage = (Stowage)palletStowage;
    }
    
    
}
